<!DOCTYPE html>
<html lang="{$current_lang}">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{$page_title} - {$Think.lang.site_name}</title>
    <meta name="description" content="{$page_description}">
    {block name="head_meta"}{/block}
    <link rel="icon" href="/favicon.ico" sizes="any">
    <link rel="icon" href="/favicon-32x32.png" type="image/png" sizes="32x32">
    <link rel="icon" href="/favicon-16x16.png" type="image/png" sizes="16x16">
    <link rel="icon" href="/favicon-48x48.png" type="image/png" sizes="48x48">
    <link rel="icon" href="/favicon-128x128.png" type="image/png" sizes="128x128">
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.4/css/all.min.css" rel="stylesheet">
    <link href="/static/css/style.css?v=1" rel="stylesheet">
    
    <style>
        .hero-section {
            background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
            min-height: 450px;
        }
        .search-container {
            max-width: 650px;
        }
        .gradient-text {
            background: linear-gradient(135deg, #0891b2, #06b6d4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .logo-svg {
            width: 40px;
            height: 40px;
        }
        .logo-svg-footer {
            width: 36px;
            height: 36px;
        }
    </style>
</head>
<body class="bg-slate-50 text-gray-800">
    <header class="bg-white shadow-lg navbar">
        <div class="container mx-auto px-4">
            <div class="flex justify-between items-center py-4">
                <a href="{:get_full_url_by_uri($current_lang)}" class="flex items-center space-x-3">
                    <img src="/static/images/logo.png" alt="LyricsPinyin.net Logo" class="logo-svg">
                    <span class="text-2xl font-bold gradient-text">{$Think.lang.site_name}</span>
                </a>
                
                <nav class="hidden md:flex space-x-8">
                    <a href="{:get_full_url_by_uri($current_lang)}" class="text-gray-700 hover:text-cyan-600 nav-link font-medium">{$Think.lang.home}</a>
                    <a href="{:get_full_url_by_uri($current_lang,'list')}" class="text-gray-700 hover:text-cyan-600 nav-link font-medium">{$Think.lang.all_lyrics}</a>
                    <a href="{:get_full_url_by_uri($current_lang,'about')}" class="text-gray-700 hover:text-cyan-600 nav-link font-medium">{$Think.lang.about}</a>
                    <a href="{:get_full_url_by_uri($current_lang,'contact')}" class="text-gray-700 hover:text-cyan-600 nav-link font-medium">{$Think.lang.contact}</a>
                </nav>
                
                <div class="flex items-center space-x-4">
                    <button class="md:hidden text-gray-700 hover:text-cyan-600" id="mobile-menu-button">
                        <i class="fas fa-bars"></i>
                    </button>
                </div>
            </div>
            
            <div class="md:hidden hidden" id="mobile-menu">
                <div class="py-2 space-y-2">
                    <a href="{:get_full_url_by_uri($current_lang)}" class="block px-4 py-2 text-gray-700 hover:bg-cyan-50 hover:text-cyan-600 rounded-lg">{$Think.lang.home}</a>
                    <a href="{:get_full_url_by_uri($current_lang,'list')}" class="block px-4 py-2 text-gray-700 hover:bg-cyan-50 hover:text-cyan-600 rounded-lg">{$Think.lang.all_lyrics}</a>
                    <a href="{:get_full_url_by_uri($current_lang,'about')}" class="block px-4 py-2 text-gray-700 hover:bg-cyan-50 hover:text-cyan-600 rounded-lg">{$Think.lang.about}</a>
                    <a href="{:get_full_url_by_uri($current_lang,'contact')}" class="block px-4 py-2 text-gray-700 hover:bg-cyan-50 hover:text-cyan-600 rounded-lg">{$Think.lang.contact}</a>
                </div>
            </div>
        </div>
    </header>
    
    <main>
        {block name="content"}{/block}
    </main>
    
    <footer class="bg-gray-900 text-white mt-16">
        <div class="container mx-auto px-4 py-12">
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                <div>
                    <div class="flex items-center space-x-3 mb-6">
                        <img src="/static/images/logo.png" alt="LyricsPinyin.net Logo" class="logo-svg-footer">
                        <h3 class="text-xl font-bold gradient-text">{$Think.lang.site_name}</h3>
                    </div>
                    <p class="mb-6 text-gray-300 leading-relaxed">{$Think.lang.site_description}</p>
                    <div class="flex space-x-4">
                        {foreach $social_links as $platform => $url}
                        <a href="{$url}" target="_blank" class="text-gray-400 hover:text-cyan-400 transition-colors duration-300">
                            <i class="fab fa-{$platform} text-xl"></i>
                        </a>
                        {/foreach}
                    </div>
                </div>
                
                {if isset($friend_links) && $friend_links}
                <div>
                    <h3 class="text-xl font-bold mb-6 text-cyan-400">{$Think.lang.friend_links}</h3>
                    <ul class="space-y-3">
                        {foreach $friend_links as $link}
                        {if isset($link.html) && !empty($link.html)}
                        <li>
                            {$link.html}
                        </li>
                        {else}
                        <li><a href="{$link.url}" target="_blank" class="text-gray-300 hover:text-cyan-400 transition-colors duration-300">{$link.name}</a></li>
                        {/if}
                        {/foreach}
                    </ul>
                </div>
                {/if}
                <div>
                    <h3 class="text-xl font-bold mb-6 text-cyan-400">Quick Links</h3>
                    <ul class="space-y-3">
                        <li><a href="{:get_full_url_by_uri($current_lang,'about')}" class="text-gray-300 hover:text-cyan-400 transition-colors duration-300">{$Think.lang.about}</a></li>
                        <li><a href="{:get_full_url_by_uri($current_lang,'contact')}" class="text-gray-300 hover:text-cyan-400 transition-colors duration-300">{$Think.lang.contact}</a></li>
                        <li><a href="{:get_full_url_by_uri($current_lang,'privacy')}" class="text-gray-300 hover:text-cyan-400 transition-colors duration-300">{$Think.lang.privacy}</a></li>
                        <li><a href="{:get_full_url_by_uri($current_lang,'terms')}" class="text-gray-300 hover:text-cyan-400 transition-colors duration-300">{$Think.lang.terms}</a></li>
                    </ul>
                </div>
            </div>
            
            <div class="border-t border-gray-800 mt-12 pt-8 text-center">
                <p class="text-gray-400">&copy; {:date('Y')} {$Think.lang.site_name}. {$Think.lang.all_rights_reserved}.</p>
            </div>
        </div>
    </footer>
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
    <script>
        window.current_lang_url = "{$current_lang_url}";
    </script>
    <script src="/static/js/main.js?v=2"></script>
    {block name="script"}{/block}
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SM68X0H7XJ"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-SM68X0H7XJ');
</script>
</body>
</html> 